package Homework7;

public class Thrush extends Bird {
    private String name;

    public Thrush(String name) {
        this.name = name;
    }

    @Override
    public void flight() {
        System.out.println("The thrush bird is flying in the sky");
    }

    @Override
    public void eat() {
        System.out.println("The thrush bird eats insects");
    }

    @Override
    public void sound() {
        System.out.println("The call of the thrush bird is very pleasant");
    }
}
